package com.fxkj.cloud.drms.application;

import com.fxkj.cloud.drms.application.model.vo.AlarmHistoryModelView;
import com.fxkj.cloud.drms.application.model.vo.ProductAlarmStatisticsModelView;
import org.springframework.data.web.PagedModel;

import java.util.UUID;

/**
 * <p>description: </p>
 * @author ww
 * @date 2025/4/7 15:31
 */
public interface AlarmHistoryApplicationService {

    PagedModel<AlarmHistoryModelView> list(Integer page, Integer size, UUID deviceId, UUID productId, UUID orgId, Integer alarmLevel, Long startTime, Long endTime, String alarmText, Boolean closed);

    void create(String deviceSerialNo, Long ts, String alarmCode, String alarmText, String alarmValue);

    void close(String deviceSerialNo, Long ts, String alarmCode, String alarmText);

    ProductAlarmStatisticsModelView productAlarmStatistics(UUID productId);

    ProductAlarmStatisticsModelView productModelAlarmStatistics(UUID productModelId);
}
